package fgoScript;

import chrome.entity.Chrome;
import chrome.entity.ChromeService;
import commons.entity.CpMissonResults;
import commons.entity.NativeCp;
import commons.util.GameUtil;
import commons.util.MySpringUtil;
import commons.util.ProcessDealUtil;
import fgoScript.entity.panel.FgoFrame;
import fgoScript.exception.AppNeedStopException;
import fgoScript.service.TimerManager;
import gudaziEx.util.ChainUtil;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.task.TaskExecutor;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.awt.*;

/**
 * @description: 程序执行入口
 * @author: RENZHEHAO
 * @create: 2019-05-22 04:13
 **/
public class Entrance {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = MySpringUtil.getApplicationContext();
        FgoFrame f = (FgoFrame) applicationContext.getBean("fgoFrame");
        TimerManager tm = (TimerManager) applicationContext.getBean("timerManager");
        f.init();

        // 启动定时任务
//        test.DD.INSTANCE.DD_btn(0);//to add a line
        tm.startTasks();

    }

}
